package com.mycompany.virtualApp.service;

import com.mycompany.virtualApp.dao.TopDao;
import com.mycompany.virtualApp.entity.TopEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.HashMap;

/**
 * Created by Administrator on 2017/12/8 0008.
 */
@Service("topServiceImpl")

public class TopServiceImpl implements TopService {
    @Autowired
    TopDao systemDao;
    @Override
    public void updateDesktopAdvInfo(HashMap hashMap) {
        systemDao.closeDesktopAdv(hashMap);
    }

    @Override
    public TopEntity getDesktopDevInfo(HashMap value) {
        return  systemDao.getDesktopDevInfo(value);
    }
    @Override
    public TopEntity getTabAdvInfo(HashMap value) {
        return  systemDao.getTabAdvInfo(value);
    }

    @Override
    public void operateTabAdvInfo(HashMap map) {
          systemDao.operateTabAdvInfo(map);
    }

    @Override
    public void updateBannerClickNums(HashMap map) {
        systemDao.updateBannerClickNums(map);

    }

    @Override
    public void updateDesktopClickNums(HashMap map) {
        systemDao.updateDesktopClickNums(map);

    }

    @Override
    public void updateTabClickNums(HashMap map) {
        systemDao.updateTabClickNums(map);

    }
}
